/*
 * $Author: isan.wong@gmail.com $
 * $Date: 2011-07-29 01:03:06 +0000 (Fri, 29 Jul 2011) $
 * $Rev: 13 $
 * $URL: http://capitalbio-smd.googlecode.com/svn/src/com/capitalbio/smd/gui/SettingsDialog.java $
 */

package com.capitalbio.smd.gui;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Frame;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class SettingsDialog extends JDialog {
	private static final long serialVersionUID = 1L;
	protected Log log = LogFactory.getLog(this.getClass());
	
	public SettingsDialog(Frame owner) {
		super(owner, "Settings", true);
		
		//Basic settings pane
		JPanel basicSettingsPane = new JPanel();
		//smd.sequence.trim.start
		
		
		//Alignment settings pane
		JPanel alignmentSettingsPane = new JPanel();
		
		
		//Tabbed pane
		JTabbedPane tabbedPane = new JTabbedPane();
		tabbedPane.setPreferredSize(new Dimension(500, 300));
		
		tabbedPane.add("Basic", basicSettingsPane);
		tabbedPane.add("Alignment", alignmentSettingsPane);
		
		//Buttons
		JButton saveButton = new JButton("Save");
		JButton cancelButton = new JButton("Cancel");
		
		//Button pane
		JPanel buttonPane = new JPanel();
		buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
		buttonPane.add(saveButton);
		buttonPane.add(cancelButton);
		
		//Content pane
		getContentPane().add(tabbedPane, BorderLayout.CENTER);
		getContentPane().add(buttonPane, BorderLayout.SOUTH);

		pack();
		setLocationRelativeTo(owner);
	}
}